package com.guigui.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigui.common.utils.PageUtils;
import com.guigui.gulimall.member.dto.LoginDto;
import com.guigui.gulimall.member.dto.RegisterDto;
import com.guigui.gulimall.member.entity.MemberEntity;
import com.guigui.gulimall.member.exception.PhoneException;
import com.guigui.gulimall.member.exception.UsernameException;

import java.util.Map;

/**
 * 会员
 *
 * @author xin
 * @email 806748502@qq.com
 * @date 2021-07-23 16:09:19
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 注册
     */
    void register(RegisterDto registerDto) throws PhoneException, UsernameException;

    /**
     * 登录检验
     */
    MemberEntity login(LoginDto loginDto);
}

